<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>

<input id='ipt'>
<ul id='ul'></ul>
<script type="text/javascript">
	

function lol(json){
	ul.innerHTML = '';
	for(var i = 0;i < json.s.length;i++){
		var li = document.createElement('li');
		li.innerHTML = json.s[i]
		ul.appendChild(li);
	}
}
ipt.onkeyup = function(){
	var val = this.value;
	if(document.getElementsByClassName('os').length){
		document.body.removeChild(document.getElementsByClassName('os')[0])
	}
	var oSrcipt = document.createElement('script');
	oSrcipt.className ='os';
	oSrcipt.src = 'https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd='+val+'&cb=lol';
	//callback

	document.body.appendChild(oSrcipt);
}


</script>
</body>
</html>